package com.ruoyi.yljf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.yljf.domain.Question;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * 题目表Mapper接口
 * 
 * @author metaee
 * @date 2025-03-22
 */
public interface QuestionMapper extends BaseMapper<Question> {

    // 按照传入的 List<Long> ids 顺序获取题目列表
    List<Question> questionListByIds(@Param("ids")List<Long> ids);

    @Select("select course_question_id from yljf_test_paper where paper_taxon_id = #{paper_taxon_id} order by sort")
    List<Long> questionQuestionByIds(@Param("paper_taxon_id")Long paper_taxon_id);
}
